using UnityEngine;
using System.Collections;

public class Shoot : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
		transform.Translate(Vector3.forward);
	}
	
	void OnCollisionEnter(Collision other)
	{
		if (other.gameObject.tag != "xwing")
			Destroy(this.gameObject);
	}
	
	void OnTriggerEnter(Collider other)
	{
		if (other.gameObject.tag != "xwing")
			Destroy(this.gameObject);
	}
}
